<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="pims.*" %>
<% String contextPath = request.getContextPath(); %>
<% ProductRecord rec = (ProductRecord)request.getAttribute("rec"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="<%= contextPath %>/css/style.css" type="text/css" />
		<title>Edit Price</title>
	</head>
	<body>
		<form action="ProductUpdateServlet" method="post">
			<input type="hidden" name="id" value="<%= rec.getId() %>" />
			<p>
				<div>Number</div>
				<input type="text" name="number" value="<%= rec.getNumber() %>" />
			</p>
			<p>
				<div class="item">Name</div>
				<input type="text" name="name" value="<%= rec.getName() %>" />
			</p>
			<p>
				<div class="item">Price</div>
				<input type="text" name="price" value="<%= rec.getPrice() %>" />
			</p>
			<p>
				<input type="submit" value="更新" />
			</p>
		</form>
	</body>
</html>